<?php 
ob_start();
session_start();

include("conf/config.php");
include("conf/database.php");
include("conf/tools.php");
$memberId=$_SESSION["member_id"];
$curTime=getIndianDateTime();

foreach($_POST as $key => $value) { $arr_data[$key]=$value;}
foreach($arr_data as $key => $value) { $arr_data[$key]=addslashes($value); }

$arr_data["rec_status"]=1;
$commit_plan_id=$_GET["commit_plan_id"];
$arr_data["rec_created"]=$curTime;

if($commit_plan_id>0){

update_qry("bkitc_member_actionplan",$arr_data,"commit_id=".$commit_plan_id);


}
else{
	$commit_id=insert_qry("bkitc_member_actionplan",$arr_data);
}


header("location:mycommitment.php");


?>

